import datetime
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from applications.extensions import db


class Lesson(db.Model, UserMixin):
    __tablename__ = 'admin_lesson'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='课程ID')
    name = db.Column(db.String(100), comment='用户名')
    note = db.Column(db.String(100), comment='简介')
    create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='创建时间')
    update_at = db.Column(db.DateTime, default=datetime.datetime.now, onupdate=datetime.datetime.now, comment='创建时间')

